package com.tanhua.model.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.tanhua.model.db.Options;
import com.tanhua.model.db.SoulPaper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.util.Date;

//选项实体类;
@Data
@NoArgsConstructor
@AllArgsConstructor

public class OptionsVo implements java.io.Serializable {



    private String id;              //选项id

    private String option;          //选项

    public static OptionsVo init(Options options) {
        OptionsVo vo = new OptionsVo();
        //copy用户属性
        BeanUtils.copyProperties(options,vo);
        vo.setId( options.getId().toString());
        //返回
        return vo;
    }
}